package com.lagou.edu.utils;

import java.util.HashMap;
import java.util.concurrent.ConcurrentHashMap;

/***
 * 扫描注解工具类
 */
public class ScanConfig {

     //定义扫描的包路径
    private String packageName;
    //存放扫描后的bean对象
    private ConcurrentHashMap<String, Object> beans = new ConcurrentHashMap<>();

    public ScanConfig(String packageName) {
        this.packageName = packageName;
        //初始化bean对象
        initBeans();
    }

    /**
     * 初始化bean对象
     */
    private void initBeans(){
        //先获取扫描包的路径，将.转换为可查找符号/
        String packageDir = packageName.replace(".","/");

    }
}
